﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;

namespace WaterRevenueMS.Componnent.Data.Mapping.BasicSet
{
    //银行设置
    partial class BankSetMap
    {
        partial void BankSetMapAppend()
        {
            this.HasKey(t => t.Id);
            this.Property(t => t.Yin_HMC)
                .HasMaxLength(64);
            this.Property(t => t.Yin_HJC)
                .HasMaxLength(16);
            this.Property(t => t.Yin_HDZ)
                .HasMaxLength(128);
            this.Property(t => t.Dian_H)
                .HasMaxLength(128);
            this.Property(t => t.Chuan_Z)
                .HasMaxLength(64);
            this.Property(t => t.Lian_XR)
                .HasMaxLength(64);

            this.ToTable("Set_Yin_HSZ");
            this.Property(t => t.Id).HasColumnName("Yin_HSZ_ID")
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);

            this.HasOptional(t => t.BankCode).WithMany(d => d.BankSet).HasForeignKey(t => t.Yin_HDM_No);//银行代码ID
        }
    }
}
